package com.yycx.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 药品
 *
 * @author flyme
 * @date 2020-07-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_drugs")
@TableAlias("drugs")
@ApiModel(value = "BusDrugs对象", description = "药品")
public class BusDrugs extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "drugsId", type = IdType.ASSIGN_ID)
    private Long drugsId;

    /**
     * 海鹰ID
     */
    private String drugNo;

    /**
     * 政策ID
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long policyDrugId;

    @ApiModelProperty(value = "药品名称")
    private String drugsName;

    /**
     * 生产企业
     */
    private String producersName;

    /**
     * 件容
     */
    private Integer drugJr;

    /**
     * 商品类型
     */
    private String drugType;
    /**
     * 自定义编码
     */
    private String drugCode;

    /**
     * 供货商
     */
    private String supplierName;

    @ApiModelProperty(value = "规格名称")
    private String drugsSpec;

    @ApiModelProperty(value = "药品单位")
    private String drugsUnit;

    @ApiModelProperty(value = "供应商ID")
    private Long supplierId;

    @ApiModelProperty(value = "账套ID")
    private Long companyId;

    @ApiModelProperty(value = "机构ID")
    private Long organizationId;

    @ApiModelProperty(value = "自营状态")
    private Boolean ownerState;

    @ApiModelProperty(value = "商品描述")
    private String drugsDesc;

    @ApiModelProperty(value = "全局销售价格")
    private BigDecimal drugsPrice;

    @ApiModelProperty(value = "全局结算价格")
    private BigDecimal settlePrice;

    @ApiModelProperty(value = "零售价")
    private BigDecimal retailPrice;

    @ApiModelProperty(value = "全局成本价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "状态")
    private Integer drugsState;

    @ApiModelProperty(value = "生产企业")
    private String manufacturer;

    @ApiModelProperty(value = "购货方底价计算方式(1：按结算价 2:按成本价)")
    private Integer floorPriceType;

}
